#include <stdio.h>


int main()
{
	int a = 0;
	int b = 0;
	int c = 0;
	scanf_s("%d%d%d", &a, &b, &c);
	if (a > b)
	{
		if (a > c)
		{
			if (b > c)
			{
				printf("%d\n%d\n%d\n", a, b, c);
			}
			else
			{
				printf("%d\n%d\n%d\n", a, c, b);
			}
		}
		else if (c > b)
		{
			printf("%d\n%d\n%d\n", c, a, b);
		}
	}
	else if (a > c)
	{
		if (b > c)
		{
			printf("%d\n%d\n%d\n",b, a, c);
		}
	}
	else if(c > b)
	{
		printf("%d\n%d\n%d\n", c, b, a);
	}
	else
	{
		printf("%d\n%d\n%d\n", b, c, a);
	}



	return 0;
}